/*
 * Copyright 2022-2029 heshuixing(https://gitee.com/heshuixing)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mercury.ec.framework.air.core.client.impl.sunstn.dto.sd;

import com.mercury.ec.framework.air.core.client.impl.sunstn.jaxb.adapter.Boolean2XmlAdapter;
import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * SD ret Response DTO
 *
 * @author hesx
 */
@Data
@XmlAccessorType(XmlAccessType.FIELD)
public class SunstnSdRetRespDTO {
    /**
     * 第n个编码
     */
    @XmlAttribute
    private Integer id;

    /**
     * 预订结果
     */
    @XmlAttribute
    @XmlJavaTypeAdapter(Boolean2XmlAdapter.class)
    private Boolean result;

    /**
     * 编码
     */
    @XmlAttribute
    private String pnr;

    /**
     * 乘客类型
     */
    @XmlAttribute
    private String type;

    /**
     * 编码是否为申请状态
     */
    @XmlAttribute
    @XmlJavaTypeAdapter(Boolean2XmlAdapter.class)
    private Boolean apply;

    /**
     * 编码状态
     */
    @XmlAttribute
    private String state;

    /**
     * 预订失败原因
     */
    @XmlAttribute
    private String errinfo;
}
